package com.hrprojectback.service.XinXiGuanLiService;

import com.hrprojectback.dto.Department;
import com.hrprojectback.dto.DepertmentPCode;

import java.util.List;

public interface DepartmentService {
    /**
     * 根据部门id去查询需要编辑的部门信息
     *
     * @param id
     * @return
     */


    /**
     * 查询部门数据
     *
     * @param code
     * @param name
     * @param pageStart
     * @param pageSize
     * @return
     */
    List<Department> getDepartment(String code, String name, int pageStart, int pageSize);

    /**
     * 查询部门列表
     *
     * @param department
     * @return
     */
    List<Department> selectDepartmentNameTrees(Department department);
    List<DepertmentPCode> selectDepartmentPCodeTrees(DepertmentPCode depertmentPCode);

    /**
     * 查询部门数量
     *
     * @param code
     * @param name
     * @return
     */
    Integer getDeptCounts(String code, String name);

    /**
     * 新增部门
     *
     * @param department
     * @return
     */
    int addDept(Department department);

    /**
     * 根据部门code去查询需要编辑的部门信息
     *
     * @param code
     * @return
     */
    Department geteditDepartment(String code);

    /**
     * 编辑部门信息
     *
     * @param department
     * @return
     */
    int editDept(Department department);

    /**
     * 根据部门code删除部门
     *
     * @param code
     * @return
     */
    int deleteDept(String code);

    /**
     * 根据部门code禁用部门
     *
     * @param code
     * @return
     */
    int YiShiXiAo(String code);

    /**
     * 根据部门code启用部门
     *
     * @param code
     * @return
     */
    int YiQiYong(String code);

    int getStatus(String code);
}
